import request from '@/utils/request'


export const listTVaccinDept = (search) =>
request({
    url: '/tVaccinNoteDept',
    method: 'get',
    params: {
        offset: search.offset,
        limit: search.limit,
        name: search.name
    }
})
//查询所有的分类
/*  export const listTMealsType = () =>
    request({
        url: '/tMealsType',
        method: 'get'
    })*/

  export const getTVaccinDeptById = (id) =>
    request({
      url: '/tVaccinNoteDept/' + id,
      method: 'get'
    })

  export const saveTVaccinDept = (evaluate) =>
    request({
      url: '/tVaccinNoteDept',
      method: 'post',
      data: evaluate
    })
export const updateTVaccinDept = (id, evaluate) =>
    request({
      url: '/tVaccinNoteDept/' + id,
      method: 'put',
      data: evaluate
    })

export const removeTVaccinDept = (id) =>
  request({
      url: '/tVaccinNoteDept/' + id,
      method: 'delete'
  })

